//
//  HorseDyTableViewCell.m
//  Item A House
//
//  Created by dlios on 15/5/26.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "HorseDyTableViewCell.h"

@implementation HorseDyTableViewCell
- (void)dealloc
{
    [_data release];
    [_label release];
    [_inforLabel release];
    [_titleLabel release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createLabel];
    }
    return self;
}
- (void)createLabel
{
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(10, 10, [UIScreen mainScreen].bounds.size.width - 20, 150)];
       [view setBackgroundColor:[UIColor colorWithRed:0.5 green:0.2 blue:0.3 alpha:0.2]];
    //圆角
    view.layer.cornerRadius = 5;
    view.clipsToBounds = YES;
    [self addSubview:view];
    [view release];
    
    self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 20, [UIScreen mainScreen].bounds.size.width, 20)];
    self.titleLabel.font = [UIFont systemFontOfSize:17];
    [view addSubview:self.titleLabel];
    [self.titleLabel release];
    
    self.label = [[UILabel alloc] initWithFrame:CGRectMake(10, 40, [UIScreen mainScreen].bounds.size.width, 20)];
    self.label.font = [UIFont systemFontOfSize:16];
    self.label.textColor = [UIColor colorWithWhite:0.3 alpha:0.7];
    [view addSubview:self.label];
    [self.label release];
    
    self.inforLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 60, [UIScreen mainScreen].bounds.size.width - 25, 50)];
    self.inforLabel.font = [UIFont systemFontOfSize:16];
    self.inforLabel.textColor = [UIColor colorWithWhite:0.3 alpha:0.8];
    self.inforLabel.numberOfLines = 2;
    [view addSubview:self.inforLabel];
    [self.inforLabel release];
    
    self.data = [[UILabel alloc] initWithFrame:CGRectMake(10, 110, [UIScreen mainScreen].bounds.size.width, 20)];
    self.data.font = [UIFont systemFontOfSize:15];
    self.data.textColor = [UIColor colorWithWhite:0.3 alpha:0.7];
    [view addSubview:self.data];
    [self.data release];
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
